<?php

/**
 * ShopEx licence
 * @author ajx
 * @copyright  Copyright (c) 2005-2014 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

class syslogistics_ctl_admin_dlvpSetting extends desktop_controller {

    public $workground = 'syslogistics.workground.logistics';


    /**
     * 送货点配置设置列表
     * 是/否
     */
    
    public function setting()
    {
        if( $_POST )
        {
            $this->adminlog("设置	是否启用自营点经营范围内送货上门服务[启用状态:{$_POST['open']}]", 1);
            app::get('syslogistics')->setConf('syslogistics.dlvpSetting.open',$_POST['open']);
            $pagedata['open'] = $_POST['open'];
        }
        else
        {
            $pagedata['open'] = app::get('syslogistics')->getConf('syslogistics.dlvpSetting.open');
        }
        return $this->page('syslogistics/dlvpoint/setting.html', $pagedata);

    }
}

